module.exports = app => {
    const { router, controller } = app;
    const va = app.middleware.user.validateAdmin();
    // const userMid = app.middleware.user.validateUser(app);

    router.get('/role/list', va, controller.role.list);

    router.post('/role/add', va, controller.role.add);

    router.get('/role/delete', va, controller.role.delete);

    router.post('/role/update', va, controller.role.update);
}